import http from "./request";

async function getList(params) {
  let { data } = await http.get("/topics?tab=" + params.tab);
  return data;
}
//把请求列表的方法return出去

async function getDetail(params) {
  let { data } = await http.get("/topic/" + params.id);
  return data;
}
export { getList, getDetail };
